package com.mspbots.core.ticketai.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JsonNode;
import com.mspbots.core.wise.model.TenantEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * com.mspbots.sync.model.Agreements
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/12/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tenant_agreements", autoResultMap = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Agreements extends TenantEntity {

    private Integer cwId;
    private Integer companyId;
    private String name;
    private Double billAmount;
    private LocalDateTime createdTime;
    private LocalDateTime updateTime;
    private LocalDateTime syncTime;
    private JsonNode extend;

    @Builder
    public Agreements(Long id, Long tenantId, Integer cwId, Integer companyId, String name, Double billAmount, LocalDateTime createdTime,
                      LocalDateTime updateTime, LocalDateTime syncTime, JsonNode extend) {
        this.id = id;
        this.tenantId = tenantId;
        this.cwId = cwId;
        this.companyId = companyId;
        this.name = name;
        this.billAmount = billAmount;
        this.createdTime = createdTime;
        this.updateTime = updateTime;
        this.syncTime = syncTime;
        this.extend = extend;
    }
}
